import { Navigate } from 'react-router-dom'
import HomePage from '../views/home'
import HomePage_FineTuningPage from '../views/home/page/fineTuning'
import HomePage_ReasoningPage from '../views/home/page/reasoning'
import HomePage_MonitorPage from '../views/home/page/monitor'
import HomePage_ParamsSettingPage from '../views/home/page/paramsSetting'



interface Router {
  path: string,
  title: string,
  element: any,
  children?: Array<Router>
}



const routerList: Array<Router> = [
  {
    path: '/home',
    title: "主页",
    element: <HomePage />,
    children: [
      {
        path: 'reasoning',
        title: "模型推理",
        element: <HomePage_ReasoningPage />,
      },
      {
        path: 'monitor',
        title: "滚动监测",
        element: <HomePage_MonitorPage />,
      },
      {
        path: 'fineTuning',
        title: "模型微调",
        element: <HomePage_FineTuningPage />,
      },
      {
        path: 'paramsSetting',
        title: "滚动监测参数配置",
        element: <HomePage_ParamsSettingPage />,
      },
      {
        path: '',
        title: "主页/默认页面",
        element: <Navigate to="/home/reasoning" />,
      },
    ],
  },
  {
    path: '/',
    title: "默认页面",
    element: <Navigate to="/home" />,
  },
]


export default routerList